package com.webcash.CNBoard.Repository;

import java.util.List;

import com.webcash.CNBoard.Model.Board;
import com.webcash.CNBoard.Model.EmpBoard;
import com.webcash.CNBoard.Model.EmpComment;

public interface BoardRepository {
	List<EmpBoard> selectEmpBoardListByEmpNo(int empNo, int pageNum);
	void insertEmpBoardByEmpNo(String id, Board board, int empNo, int empBoardNo);
	int selectEmpBoardEmpBoardNoMaxByEmpNo(int empNo);
	EmpBoard selectEmpBoardByEmpNoAndEmpBoardNo(int empNo, int empBoardNo);
	void deleteEmpBoardByEmpNoAndEmpBoardNo(int empNo, int empBoardNo, int boardNo);
	int selectEmpBoardCountByEmpNo(int empNo);
	void updateEmpBoardByEmpNo(Board board, int empBoardNo, int empNo);
	List<EmpComment> selectEmpCommentListByBoardNo(int boardNo);
	void insertEmpCommentByBoardNoAndId(int boardNo, String id, String commentContents);
	void updateEmpBoardForCommentCountByBoardNo(int boardNo, int commentCount);
	EmpBoard selectEmpBoardByBoardNo(int boardNo);
	void updateEmpBoardForReadCountByBoardNo(int boardNo, int readCount);
}
